Skip to main content

iphoneDeviceScale

Type

function

Summary

Returns the scale of the device's screen(relative to a non-Retina display)

Syntax

iphoneDeviceScale()

Description

Use the iphoneDeviceScale function to find the scale of the device's screen (relative to a non-Retinal display)

The iphoneDeviceScale function returns the scale of the device's screen (relative to a non-Retinal display), this is 2 on a retina display and 1 otherwise.

Examples

put iphoneDeviceScale() into theScaleFactor

command: iphoneUseDeviceResolution

function: iphoneDeviceResolution

Compatibility and Support

Introduced

LiveCode 4.6

OS

ios

Platforms

mobile

Thank you for your feedback!

Was this page helpful?